

var setlist = localStorage.getItem("setlist")
var setlist = JSON.parse(setlist);

$(".n-user,#ul li .active").text(setlist.user);

$("#ul li:nth-last-child(1) a").text("安全退出");
if($(".n-user,#ul li .active").text(setlist.user)) {
	$("#ul li .active").attr("href", "user.html")
}
if($("#ul li:nth-last-child(1) a").text("安全退出")) {
	$("#ul li:nth-last-child(1) a").attr("href", "login.html")

	$('#ul li:nth-last-child(1) a').click(function() {

		localStorage.removeItem("setlist")
	})

}


